package gradle;

import java.math.BigInteger;
import java.security.MessageDigest;

public class FileDirNameHash {
    public static void main(String[] args) {
        try {
            MessageDigest messageDigest = MessageDigest.getInstance("MD5");
            byte[] bytes = "https://services.gradle.org/distributions/gradle-2.4-bin.zip".getBytes();
            messageDigest.update(bytes);
            String str = new BigInteger(1, messageDigest.digest()).toString(36);
            System.out.println(str);

            String str2 = new BigInteger(1, messageDigest.digest()).toString(36);
            System.out.println(str2);
        } catch (Exception e) {
            throw new RuntimeException("Could not hash input string.", e);
        }
    }
}
